﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 报工
    /// </summary>
    [Table("PB_JobBooking")]
    public partial class PB_JobBooking
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 主表ID（成品报工PB_ProductionOrderDetail；工序成品报工PB_CirculationBill）
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 报工数量
        /// </summary>
        public Double? Nums { get; set; }

        /// <summary>
        /// 合格数量
        /// </summary>
        public Double? ReturnNums { get; set; }

        /// <summary>
        /// 处置方式
        /// </summary>
        public String TreatmentType { get; set; }

        /// <summary>
        /// 不合格原因
        /// </summary>
        public String Reason { get; set; }

        /// <summary>
        /// 组织ID
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>
        public String DeviceId { get; set; }

        /// <summary>
        /// 报工人Id
        /// </summary>
        public String ReportUserId { get; set; }

        /// <summary>
        /// 报工人姓名
        /// </summary>
        public String ReportUserName { get; set; }

        /// <summary>
        /// 报工时间
        /// </summary>
        public DateTime? ReportTime { get; set; }

        /// <summary>
        /// 质检人Id
        /// </summary>
        public String QualityUserId { get; set; }

        /// <summary>
        /// 质检人姓名
        /// </summary>
        public String QualityUserName { get; set; }

        /// <summary>
        /// 质检时间
        /// </summary>
        public DateTime? QualityTime { get; set; }

        /// <summary>
        /// 统计人Id
        /// </summary>
        public String StatisticsUserId { get; set; }

        /// <summary>
        /// 统计人姓名
        /// </summary>
        public String StatisticsUserName { get; set; }

        /// <summary>
        /// 统计时间
        /// </summary>
        public DateTime? StatisticsTime { get; set; }

        /// <summary>
        /// 统计数量
        /// </summary>
        public Double? StatisticsNums { get; set; }

        /// <summary>
        /// 接手人Id
        /// </summary>
        public String TakeOverUserId { get; set; }

        /// <summary>
        /// 接手人姓名
        /// </summary>
        public String TakeOverUserName { get; set; }

        /// <summary>
        /// 接手时间
        /// </summary>
        public DateTime? TakeOverTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorRealName { get; set; }

        /// <summary>
        /// 状态：0=待质检；1=已质检；2=计数
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 物料id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 物料Name
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 车间Id
        /// </summary>
        public string WorkshopId { get; set; }

        /// <summary>
        /// 是否新旧：0-旧；1-新
        /// </summary>
        public int? OldOrNew { get; set; }

        /// <summary>
        /// 报工类型：0-成品报工；1-工序成品报工；2-组装报工;3-黑件报工；
        /// </summary>
        public int? JobType { get; set; }

        /// <summary>
        /// 流转单Id
        /// </summary>
        public string CirBillId { get; set; }

        /// <summary>
        /// 派工单明细Id
        /// </summary>
        public string DispatchDetailId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
    }
}